import 'package:aitao_flutter/style/color_style.dart';
import 'package:aitao_flutter/style/radius_style.dart';
import 'package:aitao_flutter/style/text_style.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

class AgeWidget extends StatelessWidget {
  final int age;
  final int gender;
  const AgeWidget({Key? key, this.age = 1, this.gender = 1}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      alignment: Alignment.center,
      width: 35.w,
      height: 18.w,
      decoration: BoxDecoration(
          borderRadius: RadiusStyle.radiusAll(10),
          color: gender == 1 ? ColorStyle.womenColor : ColorStyle.manColor),
      child: Text(age.toString(),style: Styles.whiteText_12,),
    );
  }
}
